<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../vue.js"></script>
</head>
<body>
<div id="app">
    <h1>{{countName}}</h1>
</div>
<script type="text/javascript">
new Vue({
    el:'#app',
    data:{
        tm:'天猫',
        kg:'酷狗',
    },
    computed:{
        countName:function () {
            return this.tm+this.kg;
        }
    }
})
</script>
</body>
</html>